package ccmis.finance.account.bo;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;
import jfox.platform.common.PaginationList;
import ccmis.finance.account.dao.*;
import ccmis.finance.account.entity.SubjectList;

import jfox.platform.infrastructure.DataAccessObject;
import jfox.platform.infrastructure.SuperBO;
@Stateless
@Local
public class SubjectListBoBean extends SuperBO implements SubjectListBo{
	@EJB
	SubjectListDAO subjectListDAO;
	public DataAccessObject getDataAccessObject() {
		return subjectListDAO;
	}
	public SubjectList getSubjectListById(long id) {	
		return subjectListDAO.getSubjectListById(id);
	}
	public SubjectList getSubjectListBySubjectId(String subjectId) {	
		return subjectListDAO.getSubjectListBySubjectId(subjectId);
	}
	public PaginationList<SubjectList> getAllSubjectList(int start, int limit){
		return subjectListDAO.getAllSubjectList(start,limit);
	}
}
